package client.functionalities; 

import client.MorcMIDlet;


public class SendScrapFunctionality extends RemoteFunctionality implements Runnable {
	private String friendName;
	private String scrapText;
	private boolean sent;
	
	public SendScrapFunctionality(MorcMIDlet m, String scrapText) {
		super(m);
		this.friendName = this.midlet.getRecipient();
		this.scrapText = new String(scrapText);
		this.sent = false;
	}
	
	public void addProperties() {
		this.soapObject.addProperty("Command", "sendScrap");
		this.soapObject.addProperty("Login", this.midlet.getUser());
		this.soapObject.addProperty("Pass", this.midlet.getPassword());
		this.soapObject.addProperty("friendName", this.friendName);
		this.soapObject.addProperty("scrapText", this.scrapText);
	}
	
	public boolean hasSent() {
		return this.sent;
	}

}
